﻿/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function (config) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    //config.uiColor = '#AADC6E';
    //config.resize_enabled: true,
    //config.removePlugins:'elementspath', //去掉底部一行的元素路径显示
    config.extraPlugins = 'workflow';
    config.toolbar = 'My';
    config.enterMode = CKEDITOR.ENTER_BR;
    config.toolbar_My = [
	    { name: 'document', items: ['Source', 'Maximize', 'ShowBlocks', '-', 'Save', 'NewPage', 'DocProps', 'Preview', '-', 'Templates'] },
	    { name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
	    { name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-'] },
        { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
	    '/',
	    { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
        { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
	    { name: 'colors', items: ['TextColor', 'BGColor'] },
        { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
	    '/',
        { name: 'workflow', items: ['wftext', 'wftextarea', 'wfselect', 'wfcheckbox', 'wfradio', 'wfdate', 'wfhtml', 'wfhidden'] },
	    { name: 'insert', items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak', 'Iframe'] }
    ];
    config.menu_groups += "clipboard,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,wftext,wftextarea,wfselect,wfdate,wfcheckbox,wfradio,wfhtml,wfhidden";
};
